package com.linkwechat.wecom.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Map;
import java.util.HashMap;

/**
 * 企微客服userId与助销宝member_id桥接对象 wework_kf_member_relation
 * 
 * @author ruoyi
 * @date 2022-05-19
 */
@ApiModel
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("wework_kf_member_relation")
public class WeworkKfMemberRelation implements Serializable {

private static final long serialVersionUID=1L;


    /** ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 助销宝member_id */
    @ApiModelProperty("助销宝member_id")
    @TableField(value = "member_id")
    private Integer memberId;

    /** 客服企微id */
    @ApiModelProperty("客服企微id")
    @TableField(value = "userid")
    private String userid;

    /** 状态 */
    @ApiModelProperty("状态")
    @TableField(value = "state")
    private Integer state;

    /** 同步标志位 */
    @ApiModelProperty("同步标志位")
    @TableField(value = "sync_flag")
    private Integer syncFlag;

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
